package net.csdra.DongPoShuZiTuShuGuan.service;

/**
 * Created by add on 2018/1/17.
 */
public class PageEntity {
    int page;
    int size = 10;


    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        if (size < 1) {
            size = 1;
        }
        if (size > 1000) {
            size = 1000;
        }
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "PageEntity{" +
                "page=" + page +
                ", size=" + size +
                '}';
    }
}
